
<?php 

class Designation extends CI_Controller {


    function __construct(){
    parent::__construct();
    
         
        // load helper
        $this->load->helper('url');
         
        // load model
		$this->load->model('Designation_model');
    }
  /* The default function that gets called when visiting the page */
  public function index() {       
    
		
  }
  
  public function all(){
	$designations = $this->designation_model->getAll()->result_array();
	$this->output
    ->set_content_type('application/json')
    ->set_output(json_encode($designations));
	
  }
  
  
}
?>